package com.example.castday1.bean;

/**
 * @Author : 徐闯 mpcast
 * @Date : 2021-05-23 01:05:19
 * @Description : 简单链式调用案例
 **/
public class Demo {
    private  int id;
    private String name;
    public int getId() {
        return id;
    }

    public Demo setId(int id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Demo setName(String name) {
        this.name = name;
        return this;
    }

    public static void main(String[] args) {
        Demo demp = new Demo()
                .setId(1)
                .setName("zs");
    }
}
